<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<f:view>
    <html>
        <head>
            <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
            <title>Manutencao Detail</title>
            <link rel="stylesheet" type="text/css" href="/globalimage2/faces/jsfcrud.css" /><%@ include file="/WEB-INF/jspf/AjaxScripts.jspf" %><script type="text/javascript" src="/globalimage2/faces/jsfcrud.js"></script>
        </head>
        <body>
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h1>Manutencao Detail</h1>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputText value="ManutencaoId:"/>
                    <h:outputText value="#{manutencao.manutencao.manutencaoId}" title="ManutencaoId" />
                    <h:outputText value="Observacao:"/>
                    <h:outputText value="#{manutencao.manutencao.observacao}" title="Observacao" />
                    <h:outputText value="DataChamado:"/>
                    <h:outputText value="#{manutencao.manutencao.dataChamado}" title="DataChamado" >
                        <f:convertDateTime pattern="MM/dd/yyyy" />
                    </h:outputText>
                    <h:outputText value="DataAtendimento:"/>
                    <h:outputText value="#{manutencao.manutencao.dataAtendimento}" title="DataAtendimento" >
                        <f:convertDateTime pattern="MM/dd/yyyy" />
                    </h:outputText>
                    <h:outputText value="DataFechamento:"/>
                    <h:outputText value="#{manutencao.manutencao.dataFechamento}" title="DataFechamento" >
                        <f:convertDateTime pattern="MM/dd/yyyy" />
                    </h:outputText>
                    <h:outputText value="ClienteId:"/>
                    <h:panelGroup>
                        <h:outputText value=" #{manutencao.manutencao.clienteId}"/>
                        <h:panelGroup rendered="#{manutencao.manutencao.clienteId != null}">
                            <h:outputText value=" ("/>
                            <h:commandLink value="Exibir" action="#{usuario.detailSetup}">
                                <f:param name="jsfcrud.currentManutencao" value="#{jsfcrud_class['entidade.controller.JSF.util.JsfUtil'].jsfcrud_method['getAsConvertedString'][manutencao.manutencao][manutencao.converter].jsfcrud_invoke}"/>
                                <f:param name="jsfcrud.currentUsuario" value="#{jsfcrud_class['entidade.controller.JSF.util.JsfUtil'].jsfcrud_method['getAsConvertedString'][manutencao.manutencao.clienteId][usuario.converter].jsfcrud_invoke}"/>
                                <f:param name="jsfcrud.relatedController" value="manutencao"/>
                                <f:param name="jsfcrud.relatedControllerType" value="entidade.controller.JSF.ManutencaoController"/>
                            </h:commandLink>
                            <h:outputText value=" "/>
                            <h:commandLink value="Editar" action="#{usuario.editSetup}">
                                <f:param name="jsfcrud.currentManutencao" value="#{jsfcrud_class['entidade.controller.JSF.util.JsfUtil'].jsfcrud_method['getAsConvertedString'][manutencao.manutencao][manutencao.converter].jsfcrud_invoke}"/>
                                <f:param name="jsfcrud.currentUsuario" value="#{jsfcrud_class['entidade.controller.JSF.util.JsfUtil'].jsfcrud_method['getAsConvertedString'][manutencao.manutencao.clienteId][usuario.converter].jsfcrud_invoke}"/>
                                <f:param name="jsfcrud.relatedController" value="manutencao"/>
                                <f:param name="jsfcrud.relatedControllerType" value="entidade.controller.JSF.ManutencaoController"/>
                            </h:commandLink>
                            <h:outputText value=" "/>
                            <h:commandLink value="Remover" action="#{usuario.destroy}">
                                <f:param name="jsfcrud.currentManutencao" value="#{jsfcrud_class['entidade.controller.JSF.util.JsfUtil'].jsfcrud_method['getAsConvertedString'][manutencao.manutencao][manutencao.converter].jsfcrud_invoke}"/>
                                <f:param name="jsfcrud.currentUsuario" value="#{jsfcrud_class['entidade.controller.JSF.util.JsfUtil'].jsfcrud_method['getAsConvertedString'][manutencao.manutencao.clienteId][usuario.converter].jsfcrud_invoke}"/>
                                <f:param name="jsfcrud.relatedController" value="manutencao"/>
                                <f:param name="jsfcrud.relatedControllerType" value="entidade.controller.JSF.ManutencaoController"/>
                            </h:commandLink>
                            <h:outputText value=" )"/>
                        </h:panelGroup>
                    </h:panelGroup>
                    <h:outputText value="FuncionarioCollection:" />
                    <h:panelGroup>
                        <h:outputText rendered="#{empty manutencao.manutencao.funcionarioCollection}" value="(No Items)"/>
                        <h:dataTable value="#{manutencao.manutencao.funcionarioCollection}" var="item" 
                                     border="0" cellpadding="2" cellspacing="0" rowClasses="jsfcrud_odd_row,jsfcrud_even_row" rules="all" style="border:solid 1px" 
                                     rendered="#{not empty manutencao.manutencao.funcionarioCollection}">
                            <h:column>
                                <f:facet name="header">
                                    <h:outputText value="FuncionarioId"/>
                                </f:facet>
                                <h:outputText value=" #{item.funcionarioId}"/>
                            </h:column>
                            <h:column>
                                <f:facet name="header">
                                    <h:outputText value="DataAdmissao"/>
                                </f:facet>
                                <h:outputText value="#{item.dataAdmissao}">
                                    <f:convertDateTime pattern="MM/dd/yyyy" />
                                </h:outputText>
                            </h:column>
                            <h:column>
                                <f:facet name="header">
                                    <h:outputText value="DataNascimento"/>
                                </f:facet>
                                <h:outputText value="#{item.dataNascimento}">
                                    <f:convertDateTime pattern="MM/dd/yyyy" />
                                </h:outputText>
                            </h:column>
                            <h:column>
                                <f:facet name="header">
                                    <h:outputText value="Cbo"/>
                                </f:facet>
                                <h:outputText value=" #{item.cbo}"/>
                            </h:column>
                            <h:column>
                                <f:facet name="header">
                                    <h:outputText value="Ctps"/>
                                </f:facet>
                                <h:outputText value=" #{item.ctps}"/>
                            </h:column>
                            <h:column>
                                <f:facet name="header">
                                    <h:outputText value="Serie"/>
                                </f:facet>
                                <h:outputText value=" #{item.serie}"/>
                            </h:column>
                            <h:column>
                                <f:facet name="header">
                                    <h:outputText value="Cpf"/>
                                </f:facet>
                                <h:outputText value=" #{item.cpf}"/>
                            </h:column>
                            <h:column>
                                <f:facet name="header">
                                    <h:outputText value="Rg"/>
                                </f:facet>
                                <h:outputText value=" #{item.rg}"/>
                            </h:column>
                            <h:column>
                                <f:facet name="header">
                                    <h:outputText value="OrgaoExpedicao"/>
                                </f:facet>
                                <h:outputText value=" #{item.orgaoExpedicao}"/>
                            </h:column>
                            <h:column>
                                <f:facet name="header">
                                    <h:outputText value="Deficiente"/>
                                </f:facet>
                                <h:outputText value=" #{item.deficiente}"/>
                            </h:column>
                            <h:column>
                                <f:facet name="header">
                                    <h:outputText value="NumeroDependente"/>
                                </f:facet>
                                <h:outputText value=" #{item.numeroDependente}"/>
                            </h:column>
                            <h:column>
                                <f:facet name="header">
                                    <h:outputText value="Mae"/>
                                </f:facet>
                                <h:outputText value=" #{item.mae}"/>
                            </h:column>
                            <h:column>
                                <f:facet name="header">
                                    <h:outputText value="Pai"/>
                                </f:facet>
                                <h:outputText value=" #{item.pai}"/>
                            </h:column>
                            <h:column>
                                <f:facet name="header">
                                    <h:outputText value="Naturalidade"/>
                                </f:facet>
                                <h:outputText value=" #{item.naturalidade}"/>
                            </h:column>
                            <h:column>
                                <f:facet name="header">
                                    <h:outputText value="Nacionalidade"/>
                                </f:facet>
                                <h:outputText value=" #{item.nacionalidade}"/>
                            </h:column>
                            <h:column>
                                <f:facet name="header">
                                    <h:outputText value="DataUltimaAlteracao"/>
                                </f:facet>
                                <h:outputText value="#{item.dataUltimaAlteracao}">
                                    <f:convertDateTime pattern="MM/dd/yyyy HH:mm:ss" />
                                </h:outputText>
                            </h:column>
                            <h:column>
                                <f:facet name="header">
                                    <h:outputText value="UsuarioId"/>
                                </f:facet>
                                <h:outputText value=" #{item.usuarioId}"/>
                            </h:column>
                            <h:column>
                                <f:facet name="header">
                                    <h:outputText escape="false" value="&nbsp;"/>
                                </f:facet>
                                <h:commandLink value="Exibir" action="#{funcionario.detailSetup}">
                                    <f:param name="jsfcrud.currentManutencao" value="#{jsfcrud_class['entidade.controller.JSF.util.JsfUtil'].jsfcrud_method['getAsConvertedString'][manutencao.manutencao][manutencao.converter].jsfcrud_invoke}"/>
                                    <f:param name="jsfcrud.currentFuncionario" value="#{jsfcrud_class['entidade.controller.JSF.util.JsfUtil'].jsfcrud_method['getAsConvertedString'][item][funcionario.converter].jsfcrud_invoke}"/>
                                    <f:param name="jsfcrud.relatedController" value="manutencao" />
                                    <f:param name="jsfcrud.relatedControllerType" value="entidade.controller.JSF.ManutencaoController" />
                                </h:commandLink>
                                <h:outputText value=" "/>
                                <h:commandLink value="Editar" action="#{funcionario.editSetup}">
                                    <f:param name="jsfcrud.currentManutencao" value="#{jsfcrud_class['entidade.controller.JSF.util.JsfUtil'].jsfcrud_method['getAsConvertedString'][manutencao.manutencao][manutencao.converter].jsfcrud_invoke}"/>
                                    <f:param name="jsfcrud.currentFuncionario" value="#{jsfcrud_class['entidade.controller.JSF.util.JsfUtil'].jsfcrud_method['getAsConvertedString'][item][funcionario.converter].jsfcrud_invoke}"/>
                                    <f:param name="jsfcrud.relatedController" value="manutencao" />
                                    <f:param name="jsfcrud.relatedControllerType" value="entidade.controller.JSF.ManutencaoController" />
                                </h:commandLink>
                                <h:outputText value=" "/>
                                <h:commandLink value="Remover" action="#{funcionario.destroy}">
                                    <f:param name="jsfcrud.currentManutencao" value="#{jsfcrud_class['entidade.controller.JSF.util.JsfUtil'].jsfcrud_method['getAsConvertedString'][manutencao.manutencao][manutencao.converter].jsfcrud_invoke}"/>
                                    <f:param name="jsfcrud.currentFuncionario" value="#{jsfcrud_class['entidade.controller.JSF.util.JsfUtil'].jsfcrud_method['getAsConvertedString'][item][funcionario.converter].jsfcrud_invoke}"/>
                                    <f:param name="jsfcrud.relatedController" value="manutencao" />
                                    <f:param name="jsfcrud.relatedControllerType" value="entidade.controller.JSF.ManutencaoController" />
                                </h:commandLink>
                            </h:column>
                        </h:dataTable>
                    </h:panelGroup>
                    <h:outputText value="EntradaSaidaCollection:" />
                    <h:panelGroup>
                        <h:outputText rendered="#{empty manutencao.manutencao.entradaSaidaCollection}" value="(No Items)"/>
                        <h:dataTable value="#{manutencao.manutencao.entradaSaidaCollection}" var="item" 
                                     border="0" cellpadding="2" cellspacing="0" rowClasses="jsfcrud_odd_row,jsfcrud_even_row" rules="all" style="border:solid 1px" 
                                     rendered="#{not empty manutencao.manutencao.entradaSaidaCollection}">
                            <h:column>
                                <f:facet name="header">
                                    <h:outputText value="EntradaSaidaId"/>
                                </f:facet>
                                <h:outputText value=" #{item.entradaSaidaId}"/>
                            </h:column>
                            <h:column>
                                <f:facet name="header">
                                    <h:outputText value="DataOperacao"/>
                                </f:facet>
                                <h:outputText value="#{item.dataOperacao}">
                                    <f:convertDateTime pattern="MM/dd/yyyy" />
                                </h:outputText>
                            </h:column>
                            <h:column>
                                <f:facet name="header">
                                    <h:outputText value="DataVencimento"/>
                                </f:facet>
                                <h:outputText value="#{item.dataVencimento}">
                                    <f:convertDateTime pattern="MM/dd/yyyy" />
                                </h:outputText>
                            </h:column>
                            <h:column>
                                <f:facet name="header">
                                    <h:outputText value="QuantidadeParcela"/>
                                </f:facet>
                                <h:outputText value=" #{item.quantidadeParcela}"/>
                            </h:column>
                            <h:column>
                                <f:facet name="header">
                                    <h:outputText value="ParcelaAtual"/>
                                </f:facet>
                                <h:outputText value=" #{item.parcelaAtual}"/>
                            </h:column>
                            <h:column>
                                <f:facet name="header">
                                    <h:outputText value="Valor"/>
                                </f:facet>
                                <h:outputText value=" #{item.valor}"/>
                            </h:column>
                            <h:column>
                                <f:facet name="header">
                                    <h:outputText escape="false" value="&nbsp;"/>
                                </f:facet>
                                <h:commandLink value="Exibir" action="#{entradaSaida.detailSetup}">
                                    <f:param name="jsfcrud.currentManutencao" value="#{jsfcrud_class['entidade.controller.JSF.util.JsfUtil'].jsfcrud_method['getAsConvertedString'][manutencao.manutencao][manutencao.converter].jsfcrud_invoke}"/>
                                    <f:param name="jsfcrud.currentEntradaSaida" value="#{jsfcrud_class['entidade.controller.JSF.util.JsfUtil'].jsfcrud_method['getAsConvertedString'][item][entradaSaida.converter].jsfcrud_invoke}"/>
                                    <f:param name="jsfcrud.relatedController" value="manutencao" />
                                    <f:param name="jsfcrud.relatedControllerType" value="entidade.controller.JSF.ManutencaoController" />
                                </h:commandLink>
                                <h:outputText value=" "/>
                                <h:commandLink value="Editar" action="#{entradaSaida.editSetup}">
                                    <f:param name="jsfcrud.currentManutencao" value="#{jsfcrud_class['entidade.controller.JSF.util.JsfUtil'].jsfcrud_method['getAsConvertedString'][manutencao.manutencao][manutencao.converter].jsfcrud_invoke}"/>
                                    <f:param name="jsfcrud.currentEntradaSaida" value="#{jsfcrud_class['entidade.controller.JSF.util.JsfUtil'].jsfcrud_method['getAsConvertedString'][item][entradaSaida.converter].jsfcrud_invoke}"/>
                                    <f:param name="jsfcrud.relatedController" value="manutencao" />
                                    <f:param name="jsfcrud.relatedControllerType" value="entidade.controller.JSF.ManutencaoController" />
                                </h:commandLink>
                                <h:outputText value=" "/>
                                <h:commandLink value="Remover" action="#{entradaSaida.destroy}">
                                    <f:param name="jsfcrud.currentManutencao" value="#{jsfcrud_class['entidade.controller.JSF.util.JsfUtil'].jsfcrud_method['getAsConvertedString'][manutencao.manutencao][manutencao.converter].jsfcrud_invoke}"/>
                                    <f:param name="jsfcrud.currentEntradaSaida" value="#{jsfcrud_class['entidade.controller.JSF.util.JsfUtil'].jsfcrud_method['getAsConvertedString'][item][entradaSaida.converter].jsfcrud_invoke}"/>
                                    <f:param name="jsfcrud.relatedController" value="manutencao" />
                                    <f:param name="jsfcrud.relatedControllerType" value="entidade.controller.JSF.ManutencaoController" />
                                </h:commandLink>
                            </h:column>
                        </h:dataTable>
                    </h:panelGroup>
                    <h:outputText value="ProdutoManutencaoCollection:" />
                    <h:panelGroup>
                        <h:outputText rendered="#{empty manutencao.manutencao.produtoManutencaoCollection}" value="(No Items)"/>
                        <h:dataTable value="#{manutencao.manutencao.produtoManutencaoCollection}" var="item" 
                                     border="0" cellpadding="2" cellspacing="0" rowClasses="jsfcrud_odd_row,jsfcrud_even_row" rules="all" style="border:solid 1px" 
                                     rendered="#{not empty manutencao.manutencao.produtoManutencaoCollection}">
                            <h:column>
                                <f:facet name="header">
                                    <h:outputText value="PrecoUnitario"/>
                                </f:facet>
                                <h:outputText value=" #{item.precoUnitario}"/>
                            </h:column>
                            <h:column>
                                <f:facet name="header">
                                    <h:outputText value="Quantidade"/>
                                </f:facet>
                                <h:outputText value=" #{item.quantidade}"/>
                            </h:column>
                            <h:column>
                                <f:facet name="header">
                                    <h:outputText value="Manutencao"/>
                                </f:facet>
                                <h:outputText value=" #{item.manutencao}"/>
                            </h:column>
                            <h:column>
                                <f:facet name="header">
                                    <h:outputText value="Produto"/>
                                </f:facet>
                                <h:outputText value=" #{item.produto}"/>
                            </h:column>
                            <h:column>
                                <f:facet name="header">
                                    <h:outputText value="NumeroSerieId"/>
                                </f:facet>
                                <h:outputText value=" #{item.numeroSerieId}"/>
                            </h:column>
                            <h:column>
                                <f:facet name="header">
                                    <h:outputText escape="false" value="&nbsp;"/>
                                </f:facet>
                                <h:commandLink value="Exibir" action="#{produtoManutencao.detailSetup}">
                                    <f:param name="jsfcrud.currentManutencao" value="#{jsfcrud_class['entidade.controller.JSF.util.JsfUtil'].jsfcrud_method['getAsConvertedString'][manutencao.manutencao][manutencao.converter].jsfcrud_invoke}"/>
                                    <f:param name="jsfcrud.currentProdutoManutencao" value="#{jsfcrud_class['entidade.controller.JSF.util.JsfUtil'].jsfcrud_method['getAsConvertedString'][item][produtoManutencao.converter].jsfcrud_invoke}"/>
                                    <f:param name="jsfcrud.relatedController" value="manutencao" />
                                    <f:param name="jsfcrud.relatedControllerType" value="entidade.controller.JSF.ManutencaoController" />
                                </h:commandLink>
                                <h:outputText value=" "/>
                                <h:commandLink value="Editar" action="#{produtoManutencao.editSetup}">
                                    <f:param name="jsfcrud.currentManutencao" value="#{jsfcrud_class['entidade.controller.JSF.util.JsfUtil'].jsfcrud_method['getAsConvertedString'][manutencao.manutencao][manutencao.converter].jsfcrud_invoke}"/>
                                    <f:param name="jsfcrud.currentProdutoManutencao" value="#{jsfcrud_class['entidade.controller.JSF.util.JsfUtil'].jsfcrud_method['getAsConvertedString'][item][produtoManutencao.converter].jsfcrud_invoke}"/>
                                    <f:param name="jsfcrud.relatedController" value="manutencao" />
                                    <f:param name="jsfcrud.relatedControllerType" value="entidade.controller.JSF.ManutencaoController" />
                                </h:commandLink>
                                <h:outputText value=" "/>
                                <h:commandLink value="Remover" action="#{produtoManutencao.destroy}">
                                    <f:param name="jsfcrud.currentManutencao" value="#{jsfcrud_class['entidade.controller.JSF.util.JsfUtil'].jsfcrud_method['getAsConvertedString'][manutencao.manutencao][manutencao.converter].jsfcrud_invoke}"/>
                                    <f:param name="jsfcrud.currentProdutoManutencao" value="#{jsfcrud_class['entidade.controller.JSF.util.JsfUtil'].jsfcrud_method['getAsConvertedString'][item][produtoManutencao.converter].jsfcrud_invoke}"/>
                                    <f:param name="jsfcrud.relatedController" value="manutencao" />
                                    <f:param name="jsfcrud.relatedControllerType" value="entidade.controller.JSF.ManutencaoController" />
                                </h:commandLink>
                            </h:column>
                        </h:dataTable>
                    </h:panelGroup>
                </h:panelGrid>
                <br />
                <h:commandLink action="#{manutencao.destroy}" value="Remover">
                    <f:param name="jsfcrud.currentManutencao" value="#{jsfcrud_class['entidade.controller.JSF.util.JsfUtil'].jsfcrud_method['getAsConvertedString'][manutencao.manutencao][manutencao.converter].jsfcrud_invoke}" />
                </h:commandLink>
                <br />
                <br />
                <h:commandLink action="#{manutencao.editSetup}" value="Editar">
                    <f:param name="jsfcrud.currentManutencao" value="#{jsfcrud_class['entidade.controller.JSF.util.JsfUtil'].jsfcrud_method['getAsConvertedString'][manutencao.manutencao][manutencao.converter].jsfcrud_invoke}" />
                </h:commandLink>
                <br />
                <h:commandLink action="#{manutencao.createSetup}" value="Novo" />
                <br />
                <h:commandLink action="#{manutencao.listSetup}" value="Exibir todos"/>
                <br />
                <h:commandLink value="Index" action="welcome" immediate="true" />
            </h:form>
        </body>
    </html>
</f:view>
